{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 6,
   "id": "9b5e1471",
   "metadata": {
    "ExecuteTime": {
     "end_time": "2022-07-08T07:53:47.730769Z",
     "start_time": "2022-07-08T07:53:46.122524Z"
    }
   },
   "outputs": [
    {
     "data": {
      "application/vnd.jupyter.widget-view+json": {
       "model_id": "4b95715000d3479f868e10f9c631c179"
      },
      "text/plain": [
       "    基金@最新日收益率  基金@最新单位净值 基金@最新净值日期           基金简称 基金@是否支持场内       基金代码      基金@操作 fund_chart_type\n",
       "0      0.0042   100.0000  20220707    易方达保证金收益货币a        场内  159001.OF  159001.OF               e\n",
       "1      1.0609     3.4769  20220707    易方达深证100etf        场内  159901.OF  159901.OF               n\n",
       "2      0.7869     4.4830  20220707   华夏中小企业100etf        场内  159902.OF  159902.OF               n\n",
       "3      0.9948     1.5127  20220707      南方深证成份etf        场内  159903.OF  159903.OF               n\n",
       "4     -0.2633     2.0835  20220707       工银深红利etf        场内  159905.OF  159905.OF               n\n",
       "5      1.1691     1.2980  20220707    大成深证成长40etf        场内  159906.OF  159906.OF               n\n",
       "6      0.8944     1.8162  20220707   广发中小企业300etf        场内  159907.OF  159907.OF               n\n",
       "7      1.6682     2.5718  20220707       博时创业板etf        场内  159908.OF  159908.OF               n\n",
       "8      0.4954     0.6288  20220707   招商深证tmt50etf        场内  159909.OF  159909.OF               n\n",
       "9      0.4164     2.1947  20220707  嘉实深证基本面120etf        场内  159910.OF  159910.OF               n\n",
       "10     1.0034     1.7616  20220707    汇添富深证300etf        场内  159912.OF  159912.OF               n\n",
       "11     0.3476     2.0210  20220707   交银深证300价值etf        场内  159913.OF  159913.OF               n\n",
       "12     1.6755     2.7672  20220707      易方达创业板etf        场内  159915.OF  159915.OF               n\n",
       "13     0.3796     4.9453  20220707     建信深证f60etf        场内  159916.OF  159916.OF               n\n",
       "14     1.0697     1.9652  20220707     嘉实中创400etf        场内  159918.OF  159918.OF               n\n",
       "15     0.4686     4.4808  20220707     嘉实沪深300etf        场内  159919.OF  159919.OF               n\n",
       "16     0.3306     1.1836  20220707        华夏恒生etf        场内  159920.OF  159920.OF               n\n",
       "17     0.5918     6.5442  20220707     嘉实中证500etf        场内  159922.OF  159922.OF               n\n",
       "18     0.5670     1.9510  20220707     大成中证100etf        场内  159923.OF  159923.OF               n\n",
       "19     0.4701     2.1586  20220707     南方沪深300etf        场内  159925.OF  159925.OF               n\n",
       "20    -0.1854     1.1304  20220707   汇添富中证主要消费etf        场内  159928.OF  159928.OF               n\n",
       "21    -1.7077     1.8303  20220707   汇添富中证医药卫生etf        场内  159929.OF  159929.OF               n\n",
       "22     0.7478     1.1182  20220707     汇添富中证能源etf        场内  159930.OF  159930.OF               n\n",
       "23    -0.3059     1.4990  20220707   汇添富中证金融地产etf        场内  159931.OF  159931.OF               n\n",
       "24     0.5242     1.7260  20220707   大成中证500深市etf        场内  159932.OF  159932.OF               n\n",
       "25    -0.3386     2.2367  20220707    国投瑞银金融地产etf        场内  159933.OF  159933.OF               n\n",
       "26    -1.3980     3.6395  20220707       易方达黄金etf        场内  159934.OF  159934.OF               n\n",
       "27     0.5753     1.9581  20220707   景顺长城中证500etf        场内  159935.OF  159935.OF               n\n",
       "28     1.6934     1.8917  20220707  广发中证全指可选消费etf        场内  159936.OF  159936.OF               n\n",
       "29    -1.5301     0.8559  20220707  广发中证全指医药卫生etf        场内  159938.OF  159938.OF               n\n",
       "30     0.1789     1.1197  20220707  广发中证全指信息技术etf        场内  159939.OF  159939.OF               n\n",
       "31    -0.2530     0.9463  20220707  广发中证全指金融地产etf        场内  159940.OF  159940.OF               n\n",
       "32     0.9859     0.6146  20220706     广发纳指100etf        场内  159941.OF  159941.OF               n\n",
       "33     0.9274     1.3060  20220707          深证etf        场内  159943.OF  159943.OF               n\n",
       "34     0.8493     1.2231  20220707   广发中证全指原材料etf        场内  159944.OF  159944.OF               n\n",
       "35     0.6692     0.9928  20220707    广发中证全指能源etf        场内  159945.OF  159945.OF               n\n",
       "36     1.6785     3.0410  20220707       南方创业板etf        场内  159948.OF  159948.OF               n\n",
       "37     2.1139     1.2608  20220707     华安创业板50etf        场内  159949.OF  159949.OF               n\n",
       "38     0.4058     0.8907  20220707     嘉实中关村a股etf        场内  159951.OF  159951.OF               n\n",
       "39     1.6734     1.6709  20220707       广发创业板etf        场内  159952.OF  159952.OF               n\n",
       "40     0.2394     0.7537  20220707    南方恒生中国企业etf        场内  159954.OF  159954.OF               n\n",
       "41     1.6164     1.5339  20220707       嘉实创业板etf        场内  159955.OF  159955.OF               n\n",
       "42     1.6236     1.7088  20220707       建信创业板etf        场内  159956.OF  159956.OF               n\n",
       "43     1.6657     1.8005  20220707       华夏创业板etf        场内  159957.OF  159957.OF               n\n",
       "44     1.6511     1.6561  20220707       创业板etf工银        场内  159958.OF  159958.OF               n\n",
       "45     0.9002     1.3226  20220707          央企etf        场内  159959.OF  159959.OF               n\n",
       "46     0.3144     0.7339  20220707    平安恒生中国企业etf        场内  159960.OF  159960.OF               n\n",
       "47     1.0312     2.0476  20220707   方正富邦深证100etf        场内  159961.OF  159961.OF               n\n",
       "48     1.0576     1.9971  20220707    华夏中证四川国改etf        场内  159962.OF  159962.OF               n\n",
       "49     1.6372     1.7693  20220707       平安创业板etf        场内  159964.OF  159964.OF               n"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "import wencai\n",
    "wencai.set_variable(cn_col=True)\n",
    "df = wencai.search('场内基金')\n",
    "df"
   ]
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python [conda env:quant] *",
   "language": "python",
   "name": "conda-env-quant-py"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.8.0"
  },
  "varInspector": {
   "cols": {
    "lenName": 16,
    "lenType": 16,
    "lenVar": 40
   },
   "kernels_config": {
    "python": {
     "delete_cmd_postfix": "",
     "delete_cmd_prefix": "del ",
     "library": "var_list.py",
     "varRefreshCmd": "print(var_dic_list())"
    },
    "r": {
     "delete_cmd_postfix": ") ",
     "delete_cmd_prefix": "rm(",
     "library": "var_list.r",
     "varRefreshCmd": "cat(var_dic_list()) "
    }
   },
   "types_to_exclude": [
    "module",
    "function",
    "builtin_function_or_method",
    "instance",
    "_Feature"
   ],
   "window_display": false
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
